Finding area of rectangle with given length and diagonal